package classroom;


public class Cat {
   private String name;

   private  int age;

   private  String color;

   public void setInfo(String name,int age, String color) {
       this.name=name;
       this.age=age;
       this.color=color;
   }

   public double calc(double s1,double s2) {
       return  s1+s2;

   }

   public  int calc(int s1,int s2) {
       return  s1*s2;
   }


    public  double calc(double s1,int s2) {
        return  s1/s2;
    }




    public void  printInfo() {
       System.out.println(this.name+"的年龄是： "+this.age+" 颜色为："+this.color);
   }

}
